package cn.kilo.infrastructure.persistent.dao;

import cn.kilo.infrastructure.persistent.po.OrderStaff;
import cn.kilo.infrastructure.persistent.po.Staff;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface IOrderStaffDao {
    int insertOrderStaff(@Param("orderId") Long orderId,
                         @Param("staffId") String staffId,
                         @Param("staffName") String staffName,
                         @Param("statusCode") String statusCode,
                         @Param("distance") Integer distance,
                         @Param("dateTime") String dateTime);

    void update(@Param("orderStaff") OrderStaff orderStaff);

    List<OrderStaff> queryTodayOrderStaff(@Param("staffId") String staffId,
                                          @Param("dayTime") String dayTime);

    List<OrderStaff> getOrderStaff(@Param("orderId") Long orderId);

    Staff getStaffPhoneNumber(@Param("staffId") String staffId);
}
